From 77e1e85ed86caeb700490e1087b8e7f2c2408843 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Thu, 6 Jul 2006 08:18:50 -0600 Subject: [PATCH] [IA64] Bug fix: DOM0_GETMEMLIST: do not return -EINVAL in case of success! Signed-off-by: Tristan Gingold --- xen/arch/ia64/xen/dom0_ops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/ia64/xen/dom0_ops.c b/xen/arch/ia64/xen/dom0_ops.c index a4127bdba6..43c60afded 100644 --- a/xen/arch/ia64/xen/dom0_ops.c +++ b/xen/arch/ia64/xen/dom0_ops.c @@ -164,9 +164,10 @@ long arch_do_dom0_op(dom0_op_t *op, XEN_GUEST_HANDLE(dom0_op_t) u_dom0_op) unsigned long nr_pages = op->u.getmemlist.max_pfns & 0xffffffff; unsigned long mfn; - ret = -EINVAL; - if ( d == NULL ) + if ( d == NULL ) { + ret = -EINVAL; break; + } for (i = 0 ; i < nr_pages ; i++) { pte_t *pte; -- 2.30.2